<template>
  <el-container ref='container' class="Layout">
    <div class="Layout_left">
      <div class="Layout_left_contain">
        <div class="Layout_avatar">
          <img class="Layout_avatar_img" :src="$store.state.avatar">
        </div>
        <div class="Layout_more">
          <i class="el-icon-more Layout_more_icon"></i>
        </div>
      </div>
    </div>
    <ecp-menu/>
    <el-main class="Layout_main">
      <nuxt-child/>
    </el-main>

    <!-- <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <el-dropdown>
          <i class="el-icon-setting" style="margin-right: 15px"></i>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>View</el-dropdown-item>
            <el-dropdown-item>Add</el-dropdown-item>
            <el-dropdown-item>Delete</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <nuxt-link to="/qualified">资质审核</nuxt-link>
      </el-header>

      <el-main>
        <el-table :data="tableData">
          <el-table-column prop="date" label="Date" width="140">
          </el-table-column>
          <el-table-column prop="name" label="Name" width="120">
          </el-table-column>
          <el-table-column prop="address" label="Address">
          </el-table-column>
        </el-table>
      </el-main>
    </el-container> -->
  </el-container>
</template>

<script>
  import { nologin } from "~/middleware/logincheck"
  import ecpMenu from '~/components/ecpMenu'
  export default {
    middleware: nologin,
    components: {ecpMenu},
    mounted() {
      // 设置contain的高度
      this.$refs.container.$el.style.height = document.documentElement.clientHeight+'px'
    }
  }
</script>

<style lang="scss" scoped>
.Layout {
  height: 672px;
  min-width: 1366px;
  &_left {
    width: 86px;
    background-color: #333856;
    position: relative;
    &_contain {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
    }
  }
  &_avatar {
    width: 44px;
    border-radius: 50%;
    margin-left: 21px;
    overflow: hidden;
    &_img {
      width: 100%;
      vertical-align: middle;
    }
  }
  &_more {
    color: #fff;
    text-align: center;
    width: 100%;
    height: 50px;
    line-height: 50px;
    &_icon {
      font-size: 32px;
      vertical-align: middle;
    }
  }
  &_main {
    border-left: 1px solid #e0e0e0;
    padding: 0;
  }
}
</style>
